package com.vst.serverdatalib.entity;

import java.io.Serializable;

import org.json.JSONObject;

import android.text.TextUtils;

public class HotChannel implements Serializable {

    private static final long serialVersionUID = -6507287450797891366L;

    public String mVid;

    public int mCount;

    public HotChannel(String json) {
        if (TextUtils.isEmpty(json)) {
            return;
        }
        try {
            JSONObject jsonObject = new JSONObject(json);
            this.mVid = jsonObject.optString("vid");
            this.mCount = jsonObject.optInt("count");
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    @Override
    public String toString() {
        StringBuffer sb = new StringBuffer("HotChannel:");
        sb.append("vid=").append(mVid).append(",mCount = ").append(mCount);
        return sb.toString();
    }
}
